package com.idea.plugin.core.helper;

import com.thoughtworks.qdox.model.JavaClass;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yanzhao
 * @date 2022/2/24 14:33
 * @since 1.0.0
 */
public class GlobalCodeCache {

    private static final Map<String, JavaClass> FullyQualifiedName_JavaClass = new HashMap<>();

//    public

    public static JavaClass get(String fullyQualifiedName) {
        return FullyQualifiedName_JavaClass.get(fullyQualifiedName);
    }

    public static JavaClass getWithLoad(String fullyQualifiedName) {
        JavaClass javaClass = FullyQualifiedName_JavaClass.get(fullyQualifiedName);
        if (javaClass == null) {
//            javaClass =
//            FullyQualifiedName_JavaClass.put(fullyQualifiedName,);
        }
        return javaClass;
    }

}
